package com.wq.wrongquestion.mapper.phy;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.wq.wrongquestion.entity.phy.PhysicsEntity;

/**
 * 物理
 */

@Mapper
public interface PhysicsMapper {
       
    @Select("select zjnm from m_physicszj where zjid=#{zjID}")
    public String getPhysicsZjnm(String zjID);
    

    @Select("select zjID from m_physicszj")
    public List<String>  getPhysicsZjID();
    /**
     * 获取所有章节
     * @return
     */

    public List<String>  getPhysicsZj();

    public List<PhysicsEntity> getPhysics(PhysicsEntity physicsEntity);


    public List<PhysicsEntity> getPhysicsByID(Integer id);
    /**
     * 插入错题 
     */

    public void insPhysics(PhysicsEntity physicsEntity);
    /**
     * 更新错题
     * @param physicsEntity
     */
    public Integer updPhysics(PhysicsEntity physicsEntity);
    /**
     * 删除错题
     * 
     */
    public Integer delPhysics(Integer id); 
}
